#ifndef CLIENT_H
#define CLIENT_H

#include <QMainWindow>
#include <QString>
#include <QSqlTableModel>
#include "mysqlserver.h"

namespace Ui {
class client;
}

class client : public QMainWindow
{
    Q_OBJECT

public:
    explicit client(QString name, QString pass, QString SERVER, QString PORT, QWidget *parent = nullptr);
    QString name;
    QString pass;
    QString contact;
    QString vip;
    QString SQL;
    QSqlError error;

    mysqlServer mysql;
    ~client();

private slots:
    void on_toolBox_currentChanged(int index);

    void on_clientSet_clicked();

    void on_all_clicked();

    void on_twoPerson_clicked();

    void on_single_clicked();

    void on_child_clicked();

    void on_me_clicked();

    void on_allVip_clicked();

    void on_bookingYes_clicked();

    void on_clientTxtYes_clicked();

    void on_contactTxtYes_clicked();

    void on_bookingSelect_clicked();

    void on_selectExclBooking_clicked();

    void on_exclusiveTxtYes_clicked();

    void on_passTxtYes_clicked();

    void on_stickersTxtYes_clicked();

    void on_selectStickers_clicked();

private:
    QSqlTableModel *kdcModel;
    QSqlTableModel *memberModel;

    Ui::client *ui;
};

#endif // CLIENT_H
